import { http } from "@/utils/http";
export const findTreeDepts = (params?: object) => {
    return http.request<any>("get", "/api-system/depts/findTreeDepts", { params });
};
export const deptsDelete = (params: object) => {
    return http.request<void>(
        "delete",
        `/api-system/depts/delete/${params.id}`
    );
};
export const updateDept = (data: object) => {
    return http.request<void>(
        "post",
        `/api-system/depts/updateDept`,
        { data }
    );
};
// 修改部门
export const saveDept = (data: object) => {
    return http.request<void>(
        "post",
        `/api-system/depts/saveDept`,
        { data }
    );
};
// 详情
export const findParentDeptById = (params: object) => {
    return http.request<void>(
        "get",
        `/api-system/depts/findParentDeptById/${params.id}`
    );
};  